package com.fenghongzhang.day012;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {
    private MyView2 myView;
    private Button btn;
    private static final String TAG = "MainActivity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        myView = (MyView2) findViewById(R.id.myView);
        btn = (Button) findViewById(R.id.btn);

    }

    public void show(View view) {

        myView.addImageView();

    }

    public void del(View view) {
        myView.removeImageView();
    }
}
